package com.sys.platform.service.impl;

import com.sys.platform.service.IImageUrlService;
import org.springframework.stereotype.Service;

/**
 * 图片地址
 *
 * @author yuanfuqiang
 * @date 2024-08-16
 */
@Service
public class ImageUrlServiceImpl implements IImageUrlService {

    //内部图片前缀配置
    public static final String inside = "/inside";

    //ai图片前缀配置
    public static final String aiImg = "/aiImg";

    //交通图片前缀配置
    public static final String gaImg = "/gaImg";

    /**
     * 获取图片地址前缀
     *
     * @param type（内部还是Ai）
     * @return
     */
    @Override
    public String getImageUrl(int type) {
        String url = type == 0 ? inside : type == 1 ? aiImg : gaImg;
        return url;
    }
}
